import { storage } from '@/plugins/storage';
import { cookies } from '@/utils/cookies';

export const getToken = function () {
  const accessToken = cookies(document).get('access_token');
  return accessToken || storage.get('token');
};
